﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="RegisteredMembers.aspx.vb" Inherits="Assignment4.RegisteredMembers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>Registered Members</h1>
    <p>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
            DataKeyNames="ProfileID" DataSourceID="SqlDataSourceProfileViewer" 
            ForeColor="#333333" GridLines="None" Width="341px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:ImageField DataAlternateTextField="ProfileName" 
                    DataImageUrlField="ProfileAvatar">
                    <ControlStyle CssClass="gridpicture" />
                </asp:ImageField>
                <asp:BoundField DataField="ProfileName" HeaderText="Name" 
                    SortExpression="ProfileName" />
                <asp:BoundField DataField="ProfileSurname" HeaderText="Surname" 
                    SortExpression="ProfileSurname" />
                <asp:HyperLinkField DataNavigateUrlFields="ProfileID" 
                    DataNavigateUrlFormatString="ProfileViewer.aspx?ProfileId={0}" 
                    Text="Visit Profile" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSourceProfileViewer" runat="server" 
            ConnectionString="<%$ ConnectionStrings:learningConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:learningConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [Profiles]"></asp:SqlDataSource>
    </p>

</asp:Content>
